package com.k7k7.db.entity;

import com.k7k7.db.component.UserBase;
import com.k7k7.db.component.UserWear;
import com.k7k7.db.relation.*;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class User implements Serializable {
	private Long id;//id
	private UserBase userBase = new UserBase();
	private UserWear userWear = new UserWear();//穿着 1:1
	private Set<UserHouse> houses = new HashSet<UserHouse>();
	private Set<UserUser> userUsers = new HashSet<UserUser>();//好友 n:m
	private Set<UserDress> dresses = new HashSet<UserDress>();//衣服物品 n:m
	private Set<UserProp> props = new HashSet<UserProp>();//道具物品 n:m
	private Set<UserGoods> goods = new HashSet<UserGoods>();//货物 n:m
	private Set<UserTask> tasks = new HashSet<UserTask>();//任务 n:m
	private Set<UserGame> games = new HashSet<UserGame>();//游戏 n:m
	private Set<UserMail> mails = new HashSet<UserMail>();//邮件

	public User() {
	}

	public Set<UserMail> getMails() {
		return mails;
	}

	public void setMails(Set<UserMail> mails) {
		this.mails = mails;
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Set<UserDress> getDresses() {
		return dresses;
	}

	public void setDresses(Set<UserDress> dresses) {
		this.dresses = dresses;
	}

	public Set<UserHouse> getHouses() {
		return houses;
	}

	public void setHouses(Set<UserHouse> houses) {
		this.houses = houses;
	}

	public UserWear getUserWear() {
		return userWear;
	}

	public void setUserWear(UserWear userWear) {
		this.userWear = userWear;
	}

	public UserBase getUserBase() {
		return userBase;
	}

	public void setUserBase(UserBase userBase) {
		this.userBase = userBase;
	}

	public Set<UserUser> getUserUsers() {
		return userUsers;
	}

	public void setUserUsers(Set<UserUser> userUsers) {
		this.userUsers = userUsers;
	}

	public Set<UserProp> getProps() {
		return props;
	}

	public void setProps(Set<UserProp> props) {
		this.props = props;
	}

	public Set<UserGoods> getGoods() {
		return goods;
	}

	public void setGoods(Set<UserGoods> goods) {
		this.goods = goods;
	}

	public Set<UserTask> getTasks() {
		return tasks;
	}

	public void setTasks(Set<UserTask> tasks) {
		this.tasks = tasks;
	}

	public Set<UserGame> getGames() {
		return games;
	}

	public void setGames(Set<UserGame> games) {
		this.games = games;
	}
}